<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>从源文件安装 Clutter</title>
    <link rel="stylesheet" href="style.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
    <link rel="start" href="index.html" title="Clutter编程" />
    <link rel="up" href="sec-installation.html" title="Chapter 2. 安装 Clutter" />
    <link rel="prev" href="sec-installation.html" title="Chapter 2. 安装 Clutter" />
    <link rel="next" href="chapter-headers-and-linking.html" title="Chapter 3. 头文件和链接" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">从源文件安装 <span class="application">Clutter</span> </th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="sec-installation.html"><img src="../icons/prev.png" alt="Prev" /></a> </td>
          <th width="60%" align="center">Chapter 2. 安装 <span class="application">Clutter</span> </th>
          <td width="20%" align="right"> <a accesskey="n" href="chapter-headers-and-linking.html"><img src="../icons/next.png" alt="Next" /></a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h2 class="title" style="clear: both"><a id="sec-install_from_source"></a>从源文件安装 <span class="application">Clutter</span> </h2>
          </div>
        </div>
      </div>
      <p>
在安装完所有的依赖库之后，下载 <span class="application">Clutter</span> 源代码，解包，进入新创建的目录。可采用下面的命令序列编译和安装 <span class="application">Clutter</span> ：
</p>
      <pre class="screen">
# ./configure
# make
# make install
</pre>
      <p>
</p>
      <p>
    <code class="filename">configure</code> 脚本检查所有的依赖库是否已经安装，若缺少某些依赖库，会异常退出，显示错误。
</p>
      <p>

    缺省状态下， <span class="application">Clutter</span> 被安装在 <code class="filename">/usr/local</code> 目录。
</p>
      <p>
  若想参与开发 <span class="application">Clutter</span> 或者体验最新的特征，可以从 SVN 获取 <span class="application">Clutter</span> 最新代码。具体情况可参考 <a class="ulink" href="http://www.clutter-project.org/" target="_top"><span class="application">Clutter</span> 项目网站</a>。
</p>
      <div class="sect2" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h3 class="title"><a id="sec-installation-dependencies"></a>安装依赖库</h3>
            </div>
          </div>
        </div>
        <p>
  安装 <span class="application">Clutter</span> 之前需要先安装依赖库，涉及如下包：
</p>
        <div class="itemizedlist">
          <ul type="disc">
            <li>
              <p>
                <span class="application">GTK+</span>
              </p>
            </li>
            <li>
              <p>
                <span class="application">libgl (Mesa)</span>
              </p>
            </li>
          </ul>
        </div>
        <p>
这些包又有自己的依赖包，包括：
</p>
        <div class="itemizedlist">
          <ul type="disc">
            <li>
              <p>
                <span class="application">pkg-config</span>
              </p>
            </li>
            <li>
              <p>
                <span class="application">glib</span>
              </p>
            </li>
            <li>
              <p>
                <span class="application">ATK</span>
              </p>
            </li>
            <li>
              <p>
                <span class="application">Pango</span>
              </p>
            </li>
          </ul>
        </div>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="sec-installation.html"><img src="../icons/prev.png" alt="Prev" /></a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="sec-installation.html">
              <img src="../icons/up.png" alt="Up" />
            </a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="chapter-headers-and-linking.html"><img src="../icons/next.png" alt="Next" /></a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">Chapter 2. 安装 <span class="application">Clutter</span>  </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">
              <img src="../icons/home.png" alt="Home" />
            </a>
          </td>
          <td width="40%" align="right" valign="top"> Chapter 3. 头文件和链接</td>
        </tr>
      </table>
    </div>
  </body>
</html>
